<?php
	 $root_dir = realpath(dirname(__FILE__));
    include_once($root_dir."/config/config.php");
    define('APP_DIR',ROOT_DIR."/app/");
    include_once(APP_DIR."/base/defined.php");
    
    require(ROOT_DIR.'/app/base/kernel.php');
    if(!kernel::register_autoload()){
        require(APP_DIR.'/base/autoload.php');
    }

	$b2c = kernel::single('tbdata_api_b2c');

	$a = $b2c->get_products_list(array('cat_id'=>9,'counts'=>5,'pages'=>3));

	#print_r($a);